﻿@model smartcrm.Models.ListModel

<script src="../../Scripts/list.js"></script> 

<br />
<div class="list">
<div class="FL" style="display:inline;margin-bottom:0px; margin-top:15px;"><span class="tableTitle">支付方式</span></div>
<div class="FR"><input type="button" value="新增" id="btnPaymentTypeNew" /></div>
<table id="tPayment"  style="clear:both">
<thead>
<tr>
<th>支付方式</th>
<th style="width:8%">操作</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.PaymentTypes)
        {
            <tr>
                <td>@Html.DisplayFor(modelItem => item.TypeName)</td>
                <td>
                    <img src="../../Images/grid/edit.png" title="编辑" onclick="javascript:EditPaymentType('@item.PaymentTypeNo')"  />
                    <img src="../../Images/grid/delete.png" title="删除" onclick="javascript:DeletePaymentType('@item.PaymentTypeNo')"  /> 
                </td>
            </tr>
        }
</tbody>
</table>
</div>

<div id="divPaymentType" title="支付方式" style="display:none">      
    <div id="divPaymentTypeContent" style="overflow-y: auto; height: 80px;">          
       <form id="formPaymentType">        
            <table class="font85 tableEdit">                
                <tr>
                    <td class="label">支付方式</td>
                    <td>
                        @Html.TextBox("TypeName", null, new { maxlength = "50" })&nbsp;<span class="redStar">*</span>                                                                   
                    </td>
                </tr> 
            </table>          
              @Html.Hidden("PaymentTypeNo")         
        </form>
    </div>  
    <div style="text-align:right;">  
        <span id="errorMessagePaymentType" class="errorSpan"></span> 
       <input type="button" id="btnPaymentTypeSave" value="保存" />
       <input type="button" id="btnPaymentTypeCancel" value="取消" />    
      
    </div>  
</div>  
 
<br />

<div class="list">
<div class="FL" style="display:inline;margin-bottom:0px; margin-top:15px;"><span class="tableTitle">订单状态</span></div>
<div class="FR"><input type="button" value="新增" id="btnOrderStatusNew" /></div>
<table id="tOrderStatus"  style="clear:both">
<thead>
<tr>
<th>状态名称</th>
<th style="width:8%">操作</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.OrderStatus)
        {
            <tr>
                <td>@Html.DisplayFor(modelItem => item.StatusName )</td>
                <td>
                    @if (!item.IsSystemReversed)
                    {
                        <img src="../../Images/grid/edit.png" title="编辑" onclick="javascript:EditOrderStatus('@item.StatusNo')"  />
                        <img src="../../Images/grid/delete.png" title="删除" onclick="javascript:DeleteOrderStatus('@item.StatusNo')"/> 
                    }
                </td>
            </tr>
        }
</tbody>
</table>
</div>

<div id="divOrderStatus" title="订单状态" style="display:none">      
    <div id="divOrderStatusContent" style="overflow-y: auto; height: 80px;">          
       <form id="formOrderStatus">        
            <table class="font85 tableEdit">                
                <tr>
                    <td class="label">订单状态</td>
                    <td>
                        @Html.TextBox("StatusName", null, new { maxlength = "50" })&nbsp;<span class="redStar">*</span>                                                                   
                    </td>
                </tr> 
            </table>        
            @Html.Hidden("StatusNo")          
        </form>
    </div>  
    <div style="text-align:right;">  
        <span id="errorMessageOrderStatus" class="errorSpan"></span>   
       <input type="button" id="btnOrderStatusSave" value="保存" />
       <input type="button" id="btnOrderStatusCancel" value="取消" />        
    </div>  
</div>  

<br />
<!--
<div class="list">
<div class="FL" style="display:inline;margin-bottom:0px; margin-top:15px;"><span class="tableTitle">贡献值提成比例（%）</span></div>
<div class="FR"><input type="button" value="新增" id="btnContributionRatioNew" /></div>
<table id="tContributionRatio"  style="clear:both">
<thead>
<tr>
<th>提成比例（%）</th>
<th style="width:8%">操作</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.ContributionRatio)
{
            <tr>
                <td>@Html.DisplayFor(modelItem => item.RatioNumber)</td>     
                <td>         
                    <img src="../../Images/grid/edit.png" title="编辑" onclick="javascript:EditContributioRatio('@item.RatioNo')" />
                    <img src="../../Images/grid/delete.png" title="删除" onclick="javascript:DeleteContributionRatio('@item.RatioNo')"/>                  
                </td>
            </tr>
}
</tbody>
</table>
</div>

<div id="divContributionRatio" title="提成比例">      
    <div id="divContributionRatio"Content" style="overflow-y: auto; height: 80px;">          
       <form id="formContributionRatio">
            <table class="font85 tableEdit">                  
                <tr>
                    <td class="label" style="width:160px">贡献值比例（%）</td>
                    <td>
                        @Html.TextBox("RatioNumber", null, new { maxlength = "50" })&nbsp;<span class="redStar">*</span>                                                                   
                    </td>
                </tr> 
            </table>             
            @Html.Hidden("RatioNo")         
        </form>
    </div>  
    <div style="text-align:right;">  
       <span id="errorMessageContributionRatio" class="errorSpan"></span>   
       <input type="button" id="btnContributionRatioSave" value="保存" />
       <input type="button" id="btnContributionRatioCancel" value="取消" />             
    </div>  
</div>  
-->